package user

import (
	"github.com/gin-gonic/gin"
	us "user-center/service"
)

// OperateUser
/*
操作用户
有注册 登录 更新
查找单个用户 查找所有用户
*/
func OperateUser(router *gin.RouterGroup) {
	router.GET("/", us.Test)
	router.POST("/register", us.UserRegister)
	router.GET("/getAll", us.GetAllUser)
	router.GET("/get/:id", us.GetUserById)
	router.POST("/login", us.UserLogin)
	router.POST("/logout", us.UserLogout)
}
